package com.zxc.demo.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateTimeSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Tolerate;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 用户权限关联表user_qx(UserQx)实体类
 *
 * @author makejava
 * @since 2021-02-22 10:52:23
 */
@Data
@Builder
@ToString
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "用户权限关联表", description = "用户权限关联表")
@TableName("user_qx")
public class UserQx implements Serializable {
//    private static final long serialVersionUID = -27612648166374697L;

    @Tolerate
    public UserQx(){};

    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(name = "id", value = " 主键", example = "")
    private Integer id;
    @ApiModelProperty(name = "userId", value = " 用户Id", example = "")
    private Integer userId;

    @ApiModelProperty(name = "qxId", value = " 权限Id 1：用户管理", example = "")
    private Integer qxId;
}